<?php
	$eeRO_base_eeRO->query('SELECT `news_id`, `news_title`, `news_body`, `news_time` FROM `eeRO_news` ORDER BY `news_id` DESC LIMIT 10');
	
	if ( $eeRO_base_eeRO->num() > 0 )
	{
		while ( $news = $eeRO_base_eeRO->fetch() )
		{
			$eeRO_data['content'][] = $news;
		}
	}
	else
	{
		$eeRO_data['content'] = null;
	}
	
	if ( $_GET['type'] == 'patcher' )
	{
		$eeRO_view->layout('layout_patcher.html');
	}
	
	$eeRO_view->assign('module', array('title' => 'Последние новости', 'template' => 'news_index.html', 'content' => $eeRO_data['content'], 'content_size' => sizeof($eeRO_data['content'])));